package com.luke.springcloud.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Descrtption PersonConfig
 * @Author luke
 * @Date 2020/4/24
 **/
//@Component
@ConfigurationProperties(prefix = "person")
@Data
public class PersonConfig {

    private String name;

    private Integer number;

    private String sex;

}
